package com.bw.home.net

import com.bw.home.entity.VideoEntity
import com.bw.home.entity.VideoTypeEntity
import com.example.common.base.Res
import kotlinx.coroutines.flow.Flow
import retrofit2.http.GET
import retrofit2.http.Query

interface ApiService {
    @GET("/videotype/getSimpleType")
     fun getVideoType(): Flow<Res<VideoTypeEntity>> // 需服务端支持流式响应

     @GET("/videosimple/getSimpleVideoByLabelId")
     fun getVideoList(@Query("labelId")labelId: String, @Query("page")page: Int, @Query("pagesize")size: Int): Flow<Res<VideoEntity>>
}